cmake_minimum_required(VERSION 3.17)

project(Identity)

set(CMAKE_BUILD_TYPE debug)

add_subdirectory(src/shaderBuilder)
add_subdirectory(src/TextureLoader)
add_subdirectory(src/camera)

add_executable(Identity
    src/shaderBuilder/shaderBuilder.h 
    src/TextureLoader/textureLoader.h 
    src/camera/camera.h 
    src/main.cpp)

target_link_libraries(Identity shaderBuilder textureLoader camera GLEW OpenGL glfw SOIL)

add_custom_target(run
    Identity ALL
    DEPENDS Identity)

find_package(GLEW REQUIRED OpenGL REQUIRED glfw 3.3 REQUIRED SOIL REQUIRED)
